<?php
namespace app\mxty\model;

use think\model\Pivot;
use app\common\enum\order\PayStatus as OrderPayStatusEnum;

// 预订表和场次表的中间表，记录一个预订订单中所有预订的场次
class BookingReferee extends Pivot
{
    protected $table = 'athlon_arena_booking_referee';

    public static function getRefereeByBookingId($bookingId)
    {
        return self::where('booking_id', $bookingId)->hidden(['booking_id'])->select();
    }
}
